<!DOCTYPE html>
<html><head>
    <meta charset="UTF-8">
    <title>所有图片</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" href="/css/style.css">
    <script src="/js/jquery.js"></script>
    <script src="/js/common.js"></script>

</head>

<body>

<div class="main-spot-list gray-bg">
    <ul>
        @foreach($images as $image)
        <li>
            <span>{{ $image. ' 更换图片' }}</span>
            <form action="/upload/images" method="post" enctype="multipart/form-data">
                {{ csrf_field() }}
                <input type="file" name="file" id="file">
                <input type="hidden" value="{{ $image }}" id="name" name="name">
                <input type="submit" value="提交">
            </form>
            <img src="{{ env('QINIU_DOMAINS_DEFAULT').'/'.$image }}" alt="">
        </li>
        @endforeach
    </ul>
</div>

</body>
</html>